package idiet.service;

import idiet.bean.FoodIngredient;
import idiet.dao.hibernate.FoodIngredientDao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("foodIngredientService")
public class FoodIngredientService {
	@Autowired
	FoodIngredientDao foodIngredientDao;
	public List<FoodIngredient> getFoodIngredientByMaterialId(int materialId){
		return this.foodIngredientDao.getFoodIngredientByMaterialId(materialId);
	}
	public List<FoodIngredient> getFoodIngredientsByMaterialName(String materialName){
		return null;
	}
}
